﻿#pragma once

#include <QWidget>
#include "ui_pathsettingwid.h"
#include "json_data.h"

class PathSettingWid : public QWidget
{
	Q_OBJECT

public:
	PathSettingWid(QWidget *parent = nullptr);
	~PathSettingWid();

	void Init(const PathCfg& cfg);
	PathCfg GetCfg();

private slots:
	void on_pushButton_add_fornt_clicked();
	void on_pushButton_add_back_clicked();
	void on_tabWidget_tabCloseRequested(int index);

private:
	Ui::PathSettingWid ui;
	int m_id = 0;
};
